import request from '@/utils/request'

// 查询公路理货报告提运单列表
export function listMftTalRoadList(query) {
  return request({
    url: '/swdecl/mftTalHead/list',
    method: 'get',
    params: query
  })
}

// 查询公路理货报告提运单详细
export function getMftTalRoadList(id) {
  return request({
    url: '/swdecl/mftTalHead/getInfo/' + id,
    method: 'get'
  })
}

// 新增公路理货报告提运单
export function addMftTalRoadList(data) {
  return request({
    url: '/swdecl/mftTalHead/add',
    method: 'post',
    data: data
  })
}

// 修改公路理货报告提运单
export function updateMftTalRoadList(data) {
  return request({
    url: '/swdecl/mftTalHead/edit',
    method: 'post',
    data: data
  })
}

// 删除公路理货报告提运单
export function delMftTalRoadList(id) {
  return request({
    url: '/swdecl/mftTalHead/remove/' + id,
    method: 'get'
  })
}

// 导出公路理货报告提运单
export function exportMftTalRoadList(query) {
  return request({
    url: '/swdecl/mftTalHead/export',
    method: 'get',
    params: query
  })
}

//生成理货收费单
export function crateMftTalFee(manifestId) {
  return request({
    url: '/swdecl/mftTalHead/genMftTalFee/' + manifestId,
    method: 'get'
  })
}

// 申报公路理货报告提运单
export function declMftTalRoadList(id) {
  return request({
    url: '/swdecl/mftTalHead/talDecl/' + id,
    method: 'get'
  })
}

// 删除理货申报
export function delDeclMftTalRoadList(id) {
  return request({
    url: '/swdecl/mftTalHead/talDeclDel/' + id,
    method: 'get'
  })
}


